import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    zongye:10,
    sousuozi: "",
    zongjia:"",
    gouwuchedingdan:"",
    url:"http://localhost:3000/"
  },
  mutations: {
    sousuo(state, a) {
      state.sousuozi = a
    },
    zongzong(state, a) {
      state.zongjia = a
    },
    dingdan(state, a) {
      state.gouwuchedingdan = a
    },
    zongye(state, a) {
      state.zongye = Math.ceil(a/8)
    },
    zongye12(state, a) {
      state.zongye = Math.ceil(a/12)
    }
  },
  actions: {
  },
  modules: {
  }
})
